package cn.zfgc.jfinal.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by wangwang on 2017/3/6 0006.
 */
@Service
public class DemoService {

    /**
     * dataBaseService 数据库服务
     * cacheService   缓存服务
     * 只能由service层调用，相当于dao层
     */
    @Autowired
    private DataBaseService dataBaseService;
    @Autowired
    private CacheService cacheService;

    public void showDemo() {
        cacheService.showCacheDemo();
        dataBaseService.showDbDemo();
    }
}
